<?php
if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../').'/');
if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
require_once(DOKU_PLUGIN.'syntax.php');
require_once(__DIR__. '/../common.php');

class syntax_plugin_bbcodeextensions_kbd extends BBCodeExt_simpletag_plugin_base {

    //function getType() { return 'formatting'; }
    //function getPType() { return 'normal'; }
    //function getAllowedTypes() { return array('formatting', 'disabled'); }   
    //function getSort() { return 160; }
    function connectTo($mode){
        $this->Lexer->addEntryPattern($this->makepatterns('kbd')[0], $mode, 'plugin_bbcodeextensions_kbd');
		$this->setHTMLtag('kbd');
    }
    function postConnect() { 
		$this->Lexer->addExitPattern($this->makepatterns('kbd')[1] ,'plugin_bbcodeextensions_kbd'); 
	}

}
